package city.spring.modules.oldman.repository;

import city.spring.modules.oldman.entity.OldmanAttendanceEntity;
import city.spring.modules.oldman.vo.OldmanAttendanceVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * 存储库：老人护理级别
 *
 * @author 谢金婷
 * @date 2020-08-18 14:44:39
 */
@Repository
public interface OldmanAttendanceRepository extends BaseMapper<OldmanAttendanceEntity> {

    /**
     * 根据老人id获取护理信息
     *
     * @param oldmanId
     * @return
     */
    OldmanAttendanceEntity getAttendanceInfoByoldmanId(String oldmanId);

    /**
     * 根据老人id获取护理信息
     *
     * @param personId
     * @return
     */
    OldmanAttendanceVO getAttendanceByPersonId(String personId);
}